package cn.edu.zzuli.nothinglink.mapper;

import cn.edu.zzuli.nothinglink.entity.WorkPostpone;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author suzyyy
 * @since 2021-04-08
 */
public interface WorkPostponeMapper extends BaseMapper<WorkPostpone> {

    @Select("<script>SELECT * FROM work_postpone WHERE wp_id in (" +
            "<foreach collection='ids' item='item' index='index' separator=',' >" +
            "#{item}" +
            "</foreach> )" +
            "</script>")
    List<WorkPostpone> listIgnoreDeleteBatchIds(@Param("ids") Collection ids);
}
